import request from '@/utils/request'

// 查询课节列表
export function listKj(query) {
  return request({
    url: '/jiaopei/kj/list',
    method: 'get',
    params: query
  })
}

// 查询课节详细
export function getKj(id) {
  return request({
    url: '/jiaopei/kj/' + id,
    method: 'get'
  })
}

// 新增课节
export function addKj(data) {
  return request({
    url: '/jiaopei/kj',
    method: 'post',
    data: data
  })
}

// 修改课节
export function updateKj(data) {
  return request({
    url: '/jiaopei/kj',
    method: 'put',
    data: data
  })
}

// 删除课节
export function delKj(id) {
  return request({
    url: '/jiaopei/kj/' + id,
    method: 'delete'
  })
}

// 刷新学员
export function refreshKjXy(id) {
  return request({
    url: '/jiaopei/kj/refresh/'+id,
    method: 'put'
  })
}
